<template>
  <div id="app">
    <keep-alive>
          <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
          <router-view v-if="!$route.meta.keepAlive"></router-view>
   
    
  </div>
</template>

<script>
import {mapMutations} from 'vuex'
  export default{
    methods:{
      ...mapMutations(['initUser']),
    },
    created(){
      this.initUser()
    }
  }
</script>

<style>
@import './common/global.css';
@import './assets/iconfont/iconfont.css';
</style>
